package com.ruoyi.common.constant;

/**
 * Shiro常量（兼容保留）
 *
 * @author ruoyi
 */
public class ShiroConstants
{
    /**
     * 当前登录的用户
     */
    public final static String CURRENT_USER = "currentUser";

    /**
     * 用户名字段
     */
    public final static String CURRENT_USERNAME = "username";

    /**
     * 消息key
     */
    public final static String MESSAGE = "message";

    /**
     * 错误key
     */
    public final static String ERROR = "errorMsg";

    /**
     * 编码格式
     */
    public final static String ENCODING = "UTF-8";

    /**
     * 验证码key
     */
    public final static String CURRENT_CAPTCHA = "captcha";

    /**
     * 验证码开关
     */
    public final static String CURRENT_ENABLED = "captchaEnabled";

    /**
     * 验证码类型
     */
    public final static String CURRENT_TYPE = "captchaType";

    /**
     * 验证码
     */
    public final static String CURRENT_VALIDATECODE = "validateCode";

    /**
     * 验证码错误
     */
    public final static String CAPTCHA_ERROR = "captchaError";

    /**
     * 登录记录缓存
     */
    public final static String LOGINRECORDCACHE = "loginRecordCache";

    /**
     * 系统活跃用户缓存
     */
    public final static String SYS_USERCACHE = "sys-userCache";

    /**
     * CSRF Token
     */
    public final static String CSRF_TOKEN = "CSRF_TOKEN";

    /**
     * 锁屏状态
     */
    public final static String LOCK_SCREEN = "LOCK_SCREEN";
}

